﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CheckPoint.aspx.cs" Inherits="CheckPoint" %>
<%@ Register Src="head.ascx" TagName="Head" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>服务器监测点管理</title>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <table width="100%" border="0">
        <tr>
          <td>&nbsp;<uc1:Head ID="Head2" runat="server" /></td>
        </tr>
        <tr>
        <td style="height: 485px" align="center" valign="top">
                <br />
                <br />
            消息转发接口列表
                <br />
                <br />
               <asp:GridView ID="gdvList" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnRowDeleting="gdvList_RowDeleting" OnRowEditing="gdvList_RowEditing" OnPageIndexChanging="gdvList_PageIndexChanging" PageSize="30">
               <Columns>
                   <asp:BoundField DataField="CheckPointID" HeaderText="ID" />
                   <asp:BoundField DataField="F2" HeaderText="标题" />
                   <asp:BoundField DataField="SendMessage" HeaderText="消息内容" />
                <asp:BoundField DataField="sentSMS" HeaderText="是否发送短信新" />
                <asp:BoundField DataField="sentEmail" HeaderText="是否发送邮件" />
                <asp:BoundField DataField="statusstr" HeaderText="状态" />
                   <asp:TemplateField HeaderText="请求URL">
                       <EditItemTemplate>
                           <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("F4") %>'></asp:TextBox>
                       </EditItemTemplate>
                       <ItemTemplate>
                   http://server.dbo.cn/CheckPointAPI.aspx?CheckPointID=<%#  DataBinder.Eval(Container.DataItem, "CheckPointID")%>
                       </ItemTemplate>
                   </asp:TemplateField>
                <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
               </Columns>
              </asp:GridView>
            <br />
            <table align="center" border="1" cellpadding="0" cellspacing="0" style="width: 476px">
                <tr>
                    <td colspan="2" style="height: 16px">
                        消息转发接口添加</td>
                </tr>
                <tr>
                    <td align="left" style="width: 118px">
                        标题：</td>
                    <td align="left" style="width: 217px">
                        <asp:TextBox ID="txtTitle" runat="server" Width="339px"></asp:TextBox><br />
                      </td>
                </tr>
                <tr>
                    <td align="left" style="width: 118px">
                        消息内容：</td>
                    <td align="left" style="width: 217px">
                        <asp:TextBox ID="TxtSentMessage" runat="server" Height="124px" TextMode="MultiLine" Width="346px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="left" style="width: 118px; height: 17px">
                        是否发送短信：</td>
                    <td align="left" style="height: 17px; width: 217px;">
                        <asp:CheckBox ID="CbISSentSMS" runat="server" Text="发送" Width="72px"  /></td>
                </tr>
                <tr>
                    <td align="left" style="width: 118px; height: 24px">
                        是否发送邮件：</td>
                    <td align="left" style="height: 24px; width: 217px;"><asp:CheckBox ID="CbISSentEmail" runat="server" Text="发送" Width="72px" /></td>
                </tr>
                <tr>
                    <td align="left" style="width: 118px; height: 24px;">
                        状 态：</td>
                    <td align="left" style="height: 24px; width: 217px;">
                        <asp:DropDownList ID="ddlStatus" runat="server" DataTextField="Name" DataValueField="GroupID">
                            <asp:ListItem Value="0" Selected="True">使用</asp:ListItem>
                            <asp:ListItem Value="1">未使用</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <!--<tr>
                    <td align="left" style="width: 118px; height: 24px;">
                        验证值：</td>
                    <td align="left" style="height: 24px; width: 217px;">
                        <asp:TextBox ID="TxtCheckValue" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="left" style="width: 118px; height: 24px;">
                        出现周期：</td>
                    <td align="left" style="height: 24px; width: 217px;">
                        <asp:TextBox ID="TxtPeriods" runat="server"></asp:TextBox>  </td>
                </tr>
                
                <tr>
                    <td align="left" style="width: 118px; height: 24px;">
                        开始时间：</td>
                    <td align="left" style="height: 24px; width: 217px;">
                        <asp:TextBox ID="TxtStartTime" runat="server"></asp:TextBox>  </td>
                </tr>
                
                <tr>
                    <td align="left" style="width: 118px; height: 24px;">
                        结束时间：</td>
                    <td align="left" style="height: 24px; width: 217px;">
                        <asp:TextBox ID="TxtEndTime" runat="server"></asp:TextBox>  </td>
                </tr>
                
                <tr>
                    <td align="left" style="width: 118px; height: 24px;">
                        出现次数：</td>
                    <td align="left" style="height: 24px; width: 217px;">
                        <asp:TextBox ID="TxtLogNum" runat="server"></asp:TextBox>  </td>
                </tr>-->
                <tr>
                    <td align="left" style="width: 118px; height: 24px">
                        用户组 ：</td>
                    <td align="left" style="width: 217px; height: 24px">
                        <asp:DropDownList ID="DropGroup" runat="server" DataTextField="Name" DataValueField="GroupID">
                        </asp:DropDownList></td>
                </tr>
                
                
                <tr>
                    <td style="width: 118px">
                        &nbsp;</td>
                    <td align="left" style="width: 217px">
                    <asp:Button ID="Button1" Text="添加" runat="server" OnClick="Button1_Click1" />
                      
                    </td>
                </tr>
            </table>
            <br />
            <asp:HiddenField ID="HidDomainId" runat="server" />
          </td>
        </tr>
        
       </table>
    </div>
    </form>
</body>
</html>
